This case study explains the impact of inlining CSS on a website's loading times and traffic.
Wednesday, April 3, 2024To profile the CPU usage of a Node.js application, launch the application with the ‘--inspect flag' and connect to it using Chrome DevTools via ‘chrome://inspect'. Start and stop the CPU profiling using the Record button in the Performance panel of DevTools to capture how CPU time is spent during application execution.
One major bottleneck in the boot time of Amazon EC2 instances is the initial loading of data blocks from S3 to the EBS root volume, which can be sped up by pre-warming the volume by booting and stopping the instance once. Another optimization in the boot process is using cheaper instance types for warming and resizing the instance before starting. These optimizations helped this author reduce boot times from 40 seconds to 5 seconds.
Trigger encountered reliability and performance issues in its Node.js application due to event loop lag, which led to high CPU usage and crashes. To fix this, it fixed inefficient code, added pagination, and monitored event loop lag with OpenTelemetry. Moving forward, it will keep an eye on larger payloads, as a learning from this experience.